  <my-directive-controller-as></my-directive-controller-as>
  <div class="alert alert-danger" role="alert">
    定义指令controller的别名，然后在controller通过this来代替$scope, 然后在link函数中为当做第四个参数可以被使用
  </div>
  <pre>
    zppdirective.directive('myDirectiveControllerAs', function(){
            return {
              restrict: 'EA',
              controller: function($scope, $element, $attrs){
                // 指令控制器的逻辑代码
                this.list = ['zs', 'ls', 'ww'];
                this.myClick = function() {
                  alert('我被点击了')
                }
              },
              controllerAs: 'myCtrl',
              link: function(scope, ele, attrs, myCtrl) {
                ele.on('click', myCtrl.myClick);
              },
              templateUrl: 'templateUrl: 'app/views/template/ctrlAs.html'l'
            }
          })
  </pre>
